<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddSubMchIdToWorkOrderFuyouInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('work_order_fuyou_info', function (Blueprint $table) {
            $table->string('subMchWxId','32')->default('')->comment('商户子商户号-微信')->after('orderPrefix');
            $table->string('wxChannelNo','10')->default('')->comment('微信渠道号')->after('subMchWxId');
            $table->string('subMchAlipayId','32')->default('')->comment('商户子商户号-支付宝')->after('wxChannelNo');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('work_order_fuyou_info', function (Blueprint $table) {
            $table->dropColumn('subMchWxId');
            $table->dropColumn('wxChannelNo');
            $table->dropColumn('subMchAlipayId');
        });
    }
}
